package com.ruoyi.controller;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.AjaxResult;
import com.ruoyi.service.AuthorityService;
import com.ruoyi.vo.PermissionApplyVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/authority")
public class AuthorityController {
    @Resource
    private AuthorityService authorityService;

    @RequestMapping("/permissionApply")
    public AjaxResult permissionApply(PermissionApplyVo vo){
        return AjaxResult.success("success-调用成功！",authorityService.permissionApply(vo));
    }




}
